Skip to main content

womenvaccination

Table Name: womenvaccination

The womenvaccination table stores information about vaccinations administered to women, including details about timing, status, and the administering personnel.


Columns

Column NameData TypeConstraintsDescription
vaccinationRecordNumint(11)Primary Key, Not NullUnique identifier for each vaccination record.
createdDatedatetimeNullableThe date and time when the record was created.
descriptionvarchar(255)NullableA description of the vaccination event.
epiNumbervarchar(255)NullableExpanded Program on Immunization (EPI) number for tracking purposes.
heightfloatNullableHeight of the woman at the time of vaccination (if recorded).
isFirstVaccinationtinyint(1)NullableIndicates if this is the first vaccination for the woman (1 for true, 0 for false).
isVaccinationCenterChangedtinyint(1)NullableIndicates if the vaccination center was changed (1 for true, 0 for false).
lastEditedDatedatetimeNullableThe date and time when the record was last edited.
mappedIdint(11)NullableMapping identifier for internal tracking.
reasonNotTimelyVaccinationvarchar(255)NullableReason for the vaccination not being timely, if applicable.
timelinessFactorsmallint(6)NullableFactor influencing the timeliness of vaccination.
timelinessStatusint(11)NullableStatus indicating the timeliness of the vaccination.
vaccinationCenterIdint(11)Nullable, Foreign KeyIdentifier of the vaccination center where the event occurred.
vaccinationDatedatetimeNullableThe actual date when the vaccination was administered.
vaccinationDuedatedatetimeNullableThe due date for the vaccination.
vaccinationStatusvarchar(20)NullableStatus of the vaccination (e.g., COMPLETED, PENDING).
vaccinatorIdint(11)Nullable, Foreign KeyIdentifier of the vaccinator who administered the vaccine.
vaccineIdsmallint(6)Nullable, Foreign KeyIdentifier of the vaccine administered.
weightfloatNullableWeight of the woman at the time of vaccination (if recorded).
createdByUserIdint(11)Nullable, Foreign KeyIdentifier of the user who created the record.
lastEditedByUserIdint(11)Nullable, Foreign KeyIdentifier of the user who last edited the record.
womenIdint(11)Nullable, Foreign KeyIdentifier linking the woman to her vaccination record.
womenStatusvarchar(45)NullableStatus of the woman in the program (e.g., ACTIVE, INACTIVE).
vaccinationEventTypevarchar(255)NullableType of vaccination event (e.g., ROUTINE, FOLLOW-UP).
isImmunizedByLHWtinyint(1)NullableIndicates if the woman was immunized by a Lady Health Worker (LHW).

Indexes

  1. Primary Key:
    • vaccinationRecordNum: Ensures uniqueness for each vaccination record.
  2. Foreign Key Indexes:
    • vaccinationId_vaccinatorId_vaccinator_mappedId_FK: Links vaccinatorId to the vaccinator table.
    • vaccinationWomen_womenId_women_mappedId_FK: Links womenId to the idmapper table.
    • vaccinationEdit_lastEditedByUserId_user_mappedId_FK: Links lastEditedByUserId to the user table.
    • vaccinationId_vaccineId_vaccine_vaccineId_FK: Links vaccineId to the vaccine table.
    • vaccinationUser_createdByUserId_user_mappedId_FK: Links createdByUserId to the user table.
  3. Additional Indexes:
    • idx_vaccinationDate_womenvaccination: Optimizes queries on vaccinationDate.
    • idx_vaccinationStatus_womenvaccination: Optimizes queries on vaccinationStatus.

Foreign Key Relationships

  1. vaccinator table:
    • vaccinatorId: Identifies the vaccinator who administered the vaccine.
  2. idmapper table:
    • womenId: Links the woman to her vaccination record.
  3. user table:
    • createdByUserId: Identifies the user who created the record.
    • lastEditedByUserId: Identifies the user who last edited the record.
  4. vaccine table:
    • vaccineId: Identifies the vaccine administered.

Usage Notes

  • Purpose:
    • The womenvaccination table is essential for managing and tracking vaccination records of women in health programs.
  • Query Optimization:
    • Indexed columns like vaccinationDate and vaccinationStatus ensure efficient querying for reporting and data analysis.